package com.twopai.twopai.model;
import com.twopai.framelibrary.http.BaseObjectBean;
import com.twopai.framelibrary.http.RetrofitClient;
import com.twopai.framelibrary.http.ApiManager;
import com.twopai.twopai.contact.RunShopFragContract;
import com.twopai.framelibrary.entity.KDItemEntity;

import io.reactivex.Observable;
import okhttp3.RequestBody;

/**
 * Author:twopai
 * Description:
 */
public class RunShopFragModel implements RunShopFragContract.Model {
    public ApiManager getApiManager(){
        return RetrofitClient.getInstance().getApi(null);
    }

    @Override
    public Observable<BaseObjectBean<KDItemEntity>> newsList(RequestBody body) {
        return getApiManager().newsList(body);
    }
}
